/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.lnu.ums.dal.impl;

import edu.lnu.ums.dal.ISubjectDAO;
import edu.lnu.ums.entities.dictionaries.Subject;
import javax.ejb.Stateless;

@Stateless
public class SubjectDAO extends GenericDictionaryDAO<Subject> implements ISubjectDAO {

    public SubjectDAO() {
        super(Subject.class);
    }

    @Override
    public String getByNameQuery() {
        return "from Subject where name like :name";
    }

    @Override
    public String getOrderByQuery() {
        return "order by name";
    }

}
